#ifndef AP3216CWIDGET_H
#define AP3216CWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>


class ArcGraph;
class GlowText;
class Ap3216c;
class HeadView;

namespace Ui {
class AP3216CWidget;
}

class AP3216CWidget : public QWidget
{
    Q_OBJECT

public:
    explicit AP3216CWidget(QWidget *parent = nullptr);
    ~AP3216CWidget();

    void setMainWidget(QWidget *widget);
private:
    ArcGraph *arcGraph[3];
    GlowText *glowText[3];

    QVBoxLayout *vBoxLayout;
    QHBoxLayout *hBoxLayout[5];

    GlowText *test;
    /* 容器作用，用于布局 */
    QWidget *widget[6];
    /* 标签文本 */
    QLabel *label[3];
    /* i2C 传感器类 */
    Ap3216c *ap3216c;

    /* 视图表头 */
    HeadView *headView;
signals:
    void showMenu();
private slots:
    /* 获取 ap3216 传感器数据 */
    void getAp3216cData();

};

#endif // AP3216CWIDGET_H
